package com.ningxun.pagentcrawler.dto;

/**
 * 爬虫结果DTO
 * 用于返回爬虫执行结果
 */
public class CrawlerResult {
    private int successCount;
    private int failCount;
    private String message;
    
    public CrawlerResult(int successCount, int failCount, String message) {
        this.successCount = successCount;
        this.failCount = failCount;
        this.message = message;
    }
    
    public int getSuccessCount() { 
        return successCount; 
    }
    
    public void setSuccessCount(int successCount) { 
        this.successCount = successCount; 
    }
    
    public int getFailCount() { 
        return failCount; 
    }
    
    public void setFailCount(int failCount) { 
        this.failCount = failCount; 
    }
    
    public String getMessage() { 
        return message; 
    }
    
    public void setMessage(String message) { 
        this.message = message; 
    }
    
    @Override
    public String toString() {
        return "成功: " + successCount + " 条，失败: " + failCount + " 条 - " + message;
    }
} 